@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('title', config('index_title').'-个人中心')
@section('footer')
     @include('common.footer')
@stop
@section('content')

    <link href="/front/Content/assets/css/codemirror.css" rel="stylesheet" />
    <link href="/front/Content/assets/css/ace.min.css" rel="stylesheet" />
<div class="banner1"></div>
<div class="xtxx">
    <div class="xtxx_top">
        <div class="xtxx_tit"><p><a href="/home">个人中心</a>&nbsp;&gt;&nbsp;<a href="/home">我的档案</a></p></div>
    </div>
    <div class="wdda">
        <div class="wdda_left">
            <ul>
                <li class="ma on"><h3 class="on5">我的档案</h3></li>
                <li class="ma"><h3>名片宝库</h3>
                    <div class="fbnrbox" style="display: none;">
                        <ul>
                            <li><a href="/user/recharge">账户充值</a></li>
                            <li><a href="/user/income">名片收益</a></li>
                            <li><a href="/user/withdraw">申请提现</a></li>
                            <li><a href="/user/withdrawRecord">提现记录</a></li>
                        </ul>
                    </div>
                </li>
                <li class="ma">
                    <h3>我要发布</h3>
                    <div class="fbnrbox" style="display: none;">
                        <ul>
                            <li><a href="/user/myCard">名片管理</a></li>
                            <li><a href="/user/sendService">供需平台</a></li>
                            <li><a href="/user/myService">我的发布</a></li>
                        </ul>
                    </div>
                </li>
                <li class="ma"><a style="color: #000000" href="/user/dataCenter"><h3>我的留言</h3></a></li>
                <li class="ma"><a style="color: #000000" href="/user/buyRecord"><h3>购买记录</h3></a></li>
            </ul>
            <script type="text/javascript">
                jQuery(".wdda_left").slide({
                    type: "menu", //效果类型
                    titCell: ".ma", // 鼠标触发对象
                    targetCell: ".fbnrbox", // 效果对象，必须被titCell包含
                    effect: "slideDown",//下拉效果
                    delayTime: 300, // 效果时间
                    triggerTime: 0, //鼠标延迟触发时间
                    returnDefault: true  //返回默认状态
                });
            </script>
        </div>
        <div class="wdda_right">
            <div class="danr">

                <div class="admin_info_style mpnr">
                    <div class="admin_modify_style" id="Personal">
                    <form id="form1" method="POST" action="{{ route('saveUserInfo') }}">
     					{{ csrf_field() }}
                        <div class="xinxi hover">
                            <ul>
                                <li>
                                    <input name="id" type="hidden" value="10">
                                    <div class="form-group"><label class=" control-label no-padding-right" for="form-field-1">公司名称： </label>
                                        <div><input class=" text_info" name="company_name" type="text" value="{{ Auth::user()->company_name }}"></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group"><label class="control-label no-padding-right" for="form-field-1">公司地址： </label>
                                        <div><input class=" text_info" name="company_address" type="text" value="{{ Auth::user()->company_address }}"></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group"><label class="control-label no-padding-right" for="form-field-1">*联系人： </label>
                                        <div><input class="text_info" name="contact_name" type="text" value="{{ Auth::user()->contact_name }}"></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group"><label class=" control-label no-padding-right" for="form-field-1">*职位名称： </label>
                                        <div><input class="text_info" name="job_name" type="text" value="{{ Auth::user()->job_name }}"></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group"><label class=" control-label no-padding-right" for="form-field-1">*手机号： </label>
                                        <div><input class=" text_info" name="mobile" type="text" disabled="disabled" value="{{ Auth::user()->mobile }}"></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group"><label class=" control-label no-padding-right" for="form-field-1">*产品类别： </label>
                                        <div><input class=" text_info" name="team_number" type="text" value="{{ Auth::user()->team_number }}"></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group"><label class=" control-label no-padding-right" for="form-field-1">*企业邮箱： </label>
                                        <div><input class=" text_info" name="company_email" type="text" value="{{ Auth::user()->company_email }}">
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group"><label class=" control-label no-padding-right" for="form-field-1">*企业网址： </label>
                                        <div><input class=" text_info" name="homepage" type="text" value="{{ Auth::user()->homepage }}"></div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        
                        <div class="Button_operation clearfix">
                            <button class="btn btn-success radius" type="submit">保存修改</button>
                        </div>
                        </form>
                    </div>
                </div>


            </div>
        </div>
        <script>
            $(".wdda .wdda_left h3").each(function (index) {
                $(this).click(function () {
                    $(".on5").removeClass("on5");
                    $(this).addClass("on5");
                    $(".wdda .wdda_right .danr:eq(" + index + ")").show().siblings().hide();
                });
            });
        </script>
    </div>
</div>
<script type="text/javascript">
$(function(){
	@if(session('status') == 1)
		layer.msg('修改成功.');
	@endif
})
</script>
@endsection
